package com.example.springbootdemo.event;

import com.example.springbootdemo.dto.SmsDTO;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 * <p>
 *
 * </p>
 *
 * @author yurenwei
 * @since 2023/9/14
 */
@Getter
@Setter
public class SmsEvent extends ApplicationEvent {

    /**
     * 事件名称
     */
    private String eventName;

    /**
     * 短信参数
     */
    private SmsDTO sms;

    public SmsEvent(Object source,String eventName,SmsDTO sms){
        super(source);
        this.eventName=eventName;
        this.sms=sms;
    }

}
